package com.zhihao.types.common;

public class Constants {

    public final static String SPLIT = ",";

    public final static String COLON = ":";

    public final static String SPACE = " ";

    public final static String UNDERLINE = "_";

    public static class RedisKey {

        /*
                            抽奖活动相关缓存
                        */
        public static String ACTIVITY_KEY = "big_market_activity_key_";

        public static String ACTIVITY_SKU_KEY = "big_market_activity_sku_key_";

        public static String ACTIVITY_COUNT_KEY = "big_market_activity_count_key_";

        public static String ACTIVITY_SKU_COUNT_QUERY_KEY = "activity_sku_count_query_key_";

        public static String ACTIVITY_SKU_STOCK_COUNT_KEY = "activity_sku_stock_count_key_";

        public static String ACTIVITY_SKU_COUNT_CLEAR_KEY = "activity_sku_count_clear_key_";

        // 用户活动账户 次数增加：活动次数增加业务 eg：签到送次数
        public static String ACTIVITY_ACCOUNT_LOCK = "activity_account_lock_";
        // 用户活动账户 次数更新：活动次数增加业务 eg：积分兑换
        public static String ACTIVITY_ACCOUNT_UPDATE_LOCK = "activity_account_update_lock_";




        /*
            raffle_策略/转盘相关缓存
         */
        // 策略
        public static String STRATEGY_KEY = "big_market_strategy_key_";

        // 策略奖品
        public static String STRATEGY_AWARD_KEY = "big_market_strategy_award_key_";

        public static String STRATEGY_AWARD_LIST_KEY = "big_market_strategy_award_list_key_";

        // 策略抽奖算法o(1) or o(logn)...
        public static String STRATEGY_ARMORY_ALGORITHM_KEY = "strategy_armory_algorithm_key_";

        // 策略奖品查找表
        public static String STRATEGY_RATE_TABLE_KEY = "big_market_strategy_rate_table_key_";

        // 策略奖品概率-随机数生成范围
        public static String STRATEGY_RATE_RANGE_KEY = "big_market_strategy_rate_range_key_";

        /* strategy策略层面配置的‘权重规则值value’ */
        public static String STRATEGY_RULE_WEIGHT_KEY = "strategy_rule_weight_key_";

        /* 规则树key */
        public static String RULE_TREE_VO_KEY = "rule_tree_vo_key_";

        /* 策略奖品库存 */
        public static final String STRATEGY_AWARD_COUNT_KEY = "strategy_award_count_key_";

        /* 策略奖品 库存扣减 消息队列Key */
        public static final String STRATEGY_AWARD_SURPLUS_SUB_KEY = "strategy_award_surplus_sub_key_";

        /*
            用户账户积分相关
         */
        public static String USER_CREDIT_ACCOUNT_LOCK = "user_credit_account_lock_";
    }
}
